﻿using System;
using GalaxyTranslator.Presenters;
using GalaxyTranslator.ViewInterfaces;

namespace GalaxyTranslator
{
	public partial class CustomerRegistration : System.Web.UI.Page, ICustomerRegView
	{
		private CustomerRegPresenter _presenter;

		public string UserName
		{
			get { return TextBox1.Text; }
		}

		public string Password
		{
			get { return TextBox2.Text; }
		}

		protected void Page_Load(object sender, EventArgs e)
		{
			InitView();
		}

		private void InitView()
		{
			_presenter = new CustomerRegPresenter(this);
			_presenter.InitView(IsPostBack);
		}

		protected void Button1_Click(object sender, EventArgs e)
		{
			_presenter.RegisterCustomer();
		}


	}
}